#pragma once

#include <iostream>
#include "math.h"
using namespace std;

class CPrimeNumber
{

public:
	static bool IsPrime(int InNumber)
	{
		for (int i = 2; i < InNumber; i++)
		{
			if (InNumber % i == 0)
			{
				return false;
			}
		}
		return true;
	}

	static int TotalPrimeNumber(int InNumber)
	{
		int ResultTotal = 0;
		 
		for (int i = 2; i < InNumber; i++)
		{
			ResultTotal += IsPrime(i) ? 1 : 0;
		}

		return ResultTotal;
	}
};
